<%

System.out.println("username before loged out"+(String)session.getAttribute("username"));
session.removeAttribute("username");
session.invalidate();
//System.out.println("username after loged out"+(String)session.getAttribute("username"));
response.sendRedirect("index.jsp");
%>